# -*- coding: utf-8 -*-
# @Time : 2019/1/11 12:15
# @Author : Administrator
# @File : start.py
# @Project : python
# @title : 线性脚本启动
import unittest,HTMLTestRunner
from WoniuBoss.Interface.case import login1,employment

if __name__ == '__main__':
    suite = unittest.TestSuite()
    li = [login1,employment]
    moder_name = []
    for name in li:
        loader = unittest.TestLoader().loadTestsFromModule(name)
        moder_name.append(loader)
    suite.addTests(moder_name)
    with open("./report/woniuboss2.5测试报告.html","w",encoding="utf-8") as f:
        runner = HTMLTestRunner.HTMLTestRunner(f)
        runner.run(suite)